package wexin.web.jpa.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import wexin.web.jpa.domain.Article;
import wexin.web.jpa.domain.ArticleType;

@Repository
public interface ArticleRepository extends PagingAndSortingRepository<Article, Long>{
	Page<Article> findByType(ArticleType type, Pageable pageable);
}
